<?php
	require_once '../Tool/Common/PrepareInput.php';

    session_start();
    if (empty($_SESSION["userType"])) {
        $url="../Index.php";
        include_once '../Tool/Common/Redirect.php';
        exit();
    }

    if($_SESSION["userType"]=="Therapy Assistant"){
        $url="../Index.php";
        include_once '../Tool/Common/Redirect.php';
        exit();
    }
    
    $ActivityId = "";
    $flag=0;
    if(isset($_REQUEST['ActivityId'])) { 
        $ActivityId=prepareInput($_REQUEST['ActivityId']); 
    }
    
    if(preg_match("/^[0-9]*$/",$ActivityId)){
		$flag=1;
	}
    echo $flag;
?>